package com.yj.ccs.abs.common.enums;

/**
 * Copyright 2018 (C) Yunjian-VC
 * Created on : 2018/3/22
 * Author     : Unbelievable9
 **/
public enum FundRestreamType {

    /**
     * 0 - 无
     * 1 - 电汇
     * 2 - 承兑
     * 3 - 电汇 + 承兑
     */
    NONE(0),
    WIRE(1),
    ACCEPT(2),
    BOTH(3);

    private Integer value;

    FundRestreamType(Integer value) {
        this.value = value;
    }

    public Integer getValue() {
        return value;
    }

    public static FundRestreamType fromValue(Integer value) {
        for (FundRestreamType fundRestreamType : FundRestreamType.values()) {
            if (fundRestreamType.getValue().equals(value)) {
                return fundRestreamType;
            }
        }

        return null;
    }
}
